From 82c9fe8e256c68971ac60ebde5bca11111130ea5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 13 Jun 1993 04:34:58 +0000 Subject: [PATCH] (Man-getpage-in-background): Use TERM=dumb to prevent terminal control sequences in the output. --- lisp/man.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/man.el b/lisp/man.el index 2b0f26e8bfe..48c61af24e9 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -445,9 +445,12 @@ Man-reuse-okay-p is non-nil." (Man-notify-when-ready buffer) (message "Invoking man %s in background..." man-args) (setq buffer (generate-new-buffer bufname)) - (set-process-sentinel - (start-process "man" buffer "sh" "-c" - (format (Man-build-man-command) man-args)) + (let ((process-environment process-environment)) + ;; Prevent any attempt to use display terminal fanciness. + (setenv "TERM" "dumb") + (set-process-sentinel + (start-process "man" buffer "sh" "-c" + (format (Man-build-man-command) man-args))) 'Man-bgproc-sentinel)) )) -- 2.30.2